import React from 'react';
import SubMenu from './SubMenu';

export default WrappedComponent => props => {
    const {
        location: { pathname }
    } = props;
    return (
        <>
            <SubMenu path={pathname} />
            <WrappedComponent {...props} />
        </>
    );
};
